/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package org;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

/**
 * <p>Project: javase202202 - RandDemo
 * <p>Powered by Lisi On 2022-05-30 17:38:00
 * <p>Created by IntelliJ IDEA
 *

 * @version 1.0
 * @since 17
 */
public class RandDemo {
    public static void main(String[] args) {
        SimpleDateFormat s = new SimpleDateFormat("yyyyMMdd");
        Date d = new Date();
        System.out.println(s.format(d));

        var rand = new Random();
        for (int i = 1; i <= 300; i++) {
            System.out.printf("%d ", rand.nextInt(10, 21));
            if (i % 20 == 0) {
                System.out.println();
            }
        }

        System.out.println("*".repeat(18));
    }

    public static void mmm(String[] args) {
        System.out.println("Hello World");
        System.out.println(System.getProperty("java.home"));
        System.out.println(System.getProperty("java.version"));
        System.out.println(System.getProperty("os.name"));
    }
}
